package com.hc.service.impl;

import com.hc.entity.Role;
import com.hc.entity.User;
import com.hc.mapper.PermissionMapper;
import com.hc.mapper.RoleMapper;
import com.hc.mapper.UserMapper;
import com.hc.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User getUserByUsername(String username) {
        User user = userMapper.selectUserByUsername(username);
        return user;
    }
}
